import fetcher from "../apis/Fetcher";

export function logInByPhoneNumberAndPassword(params:any){
    return fetcher.put("authorization/logIn", {...params,client:"WEB_ADMIN"})
}

export function logOut(){
    return fetcher.delete("authorization")
}

export interface UpdatePasswordRequest{
    password:string
    newPassword:String
}

export function updatePassword(request:UpdatePasswordRequest){
    return fetcher.post("authorization/updatePassword",{},request)
}